package com.rich.live.service.impl;

import com.rich.live.mapper.LiveMessageMapper;
import com.rich.live.pojo.TbLiveMessage;
import com.rich.live.service.LiveMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hu
 * @version 1.0
 * @date 2021/08/14 18:51
 */
@Service
public class LiveMessageServiceImpl implements LiveMessageService {

    @Autowired
    private LiveMessageMapper liveMessageMapper;

    /**
     * 互动消息列表
     * @return List<TbLiveMessage>
     */
    @Override
    public List<TbLiveMessage> liveMessageList() {
        return liveMessageMapper.liveMessageList();
    }

    /**
     * 直播消息回复
     * @param liveMessage
     */
    @Override
    public void addLiveMessage(TbLiveMessage liveMessage) {
        liveMessageMapper.addLiveMessage(liveMessage);
    }
}
